package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @description :
 * @Author QiHainan
 * @Create 2025/6/19 19:05
 * @Version 1.0
 */
@Data
public class LoginVo implements Serializable {
    /**
     * 登录账号
     */
    @NotBlank(message = "请输入用户名")
    @Size(min = 3,max = 20,message = "用户名长度为3-20位")
    private String userName;

    /**
     * 登录密码
     */
    @NotBlank(message = "请输入密码")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,}$",message = "密码必须包含数字和密码，最小长度为6位")
    private String userPass;
}
